package org.dromara.finance.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.finance.domain.PurchaseContract;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 采购合同视图对象 purchase_contract
 *
 * @author xxy
 * @date 2025-08-18
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PurchaseContract.class)
public class PurchaseContractVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 关联销售合同号
     */
    @ExcelProperty(value = "关联销售合同号")
    private Long saleContractId;
    private String saleContractNum;

    /**
     * 采购合同号
     */
    @ExcelProperty(value = "采购合同号")
    private String purchaseContractNum;

    /**
     * 项目名称
     */
    @ExcelProperty(value = "项目名称")
    private String projectName;

    /**
     * 运输路段
     */
    @ExcelProperty(value = "运输路段", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "transport_section")
    private Long transportSection;

    /**
     * 供应商
     */
    @ExcelProperty(value = "供应商")
    private Long supplierId;

    private String supplierName;

    /**
     * 签订日期
     */
    @ExcelProperty(value = "签订日期")
    private Date signDate;

    /**
     * 签订部门
     */
    @ExcelProperty(value = "签订部门")
    private Long signDept;
    private String signDeptName;

    /**
     * 签订员工
     */
    @ExcelProperty(value = "签订员工")
    private Long signStaffId;

    private String signStaffName;

    /**
     * 原币价税合计
     */
    @ExcelProperty(value = "原币价税合计")
    private BigDecimal originalTotalAmount;

    /**
     * 原币无税金额
     */
    @ExcelProperty(value = "原币无税金额")
    private BigDecimal originalAmount;

    /**
     * 原币税额
     */
    @ExcelProperty(value = "原币税额")
    private BigDecimal originalTaxedAmount;

    /**
     * 币种
     */
    @ExcelProperty(value = "币种", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "bas_currency")
    private Long currency;

    /**
     * 汇率
     */
    @ExcelProperty(value = "汇率")
    private BigDecimal exchangeRate;

    /**
     * 本币价税合计
     */
    @ExcelProperty(value = "本币价税合计")
    private BigDecimal localTotalAmount;

    /**
     * 本币无税金额
     */
    @ExcelProperty(value = "本币无税金额")
    private BigDecimal localAmount;

    /**
     * 本币税额
     */
    @ExcelProperty(value = "本币税额")
    private BigDecimal localTaxedAmount;

    /**
     * 转关税
     */
    @ExcelProperty(value = "转关税")
    private BigDecimal transferTaxedAmount;

    /**
     * 保险费
     */
    @ExcelProperty(value = "保险费")
    private BigDecimal insuranceAmount;

    /**
     * 押车费
     */
    @ExcelProperty(value = "押车费")
    private BigDecimal escortAmount;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
